import React from "react"
import { BrowserRouter as Router, Route, Link } from "react-router-dom";
export default class Main extends React.Component {
    constructor(props) {
        super(props)
    }

    render() {
        // console.log(this.props)

        return (
            <div>
                <ul>
                    <li>
                        <Link to="/">Home</Link>
                    </li>
                    <li>
                        <Link to="/about">About</Link>
                    </li>
                    <li>
                        <Link to="/topics">Topics</Link>
                    </li>
                </ul>

                <hr/>
                {this.props.children}
            </div>
        )
    }
}

